Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code with prettier and gofumpt #1886

Merged
merged 5 commits into from
Dec 16, 2022
Merged

Conversation

deepsource-autofix[bot]
Copy link
Contributor

No description provided.

This commit fixes the style issues introduced in 4e10e17 according to the output
from prettier and gofumpt.

Details: https://deepsource.io/gh/vdaas/vald/transform/3468f768-127e-425d-9457-42cc8d2ef2b2/
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 7, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: dc660b2
Status: ✅  Deploy successful!
Preview URL: https://850693d5.vald.pages.dev
Branch Preview URL: https://deepsource-transform-885bce6.vald.pages.dev

View logs

@vdaas-ci
Copy link
Collaborator

vdaas-ci commented Dec 7, 2022

[CHATOPS:HELP] ChatOps commands.

  • 🙆‍♀️ /approve - approve
  • 💌 /changelog - replace the PR body by changelog details
  • 🍱 /format - format codes and add licenses
  • /gen-test - generate test codes
  • 🏷️ /label - add labels
  • /rebase - rebase main
  • 🔚 2️⃣ 🔚 /label actions/e2e-deploy - run E2E deploy & integration test

apis/docs/v1/docs.md Outdated Show resolved Hide resolved
apis/docs/v1/docs.md Outdated Show resolved Hide resolved
apis/docs/v1/docs.md Outdated Show resolved Hide resolved
apis/docs/v1/docs.md Outdated Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
charts/vald-helm-operator/README.md Show resolved Hide resolved
charts/vald-helm-operator/README.md Show resolved Hide resolved
charts/vald-helm-operator/README.md Show resolved Hide resolved
charts/vald-helm-operator/README.md Show resolved Hide resolved
charts/vald-helm-operator/README.md Show resolved Hide resolved
This was referenced Dec 8, 2022
* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
apis/docs/v1/docs.md Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
apis/docs/v1/docs.md Show resolved Hide resolved
Signed-off-by: vankichi <kyukawa315@gmail.com>

Signed-off-by: vankichi <kyukawa315@gmail.com>
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

LanguageTool

docs/tutorial/vald-agent-standalone-on-k8s.md|219 col 8| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Load
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|225 col 10| This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|255 col 25| This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|261 col 26| This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|326 col 14| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: B
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|340 col 31| This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING
docs/tutorial/vald-agent-standalone-on-k8s.md|343 col 32| This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING
docs/usecase/usage-example.md|85 col 150| Use a comma before ‘and’ if it connects two independent clauses (unless they are closely connected and short). (COMMA_COMPOUND_SENTENCE[1])
Suggestions: , and
URL: https://www.grammar-monster.com/lessons/commas_before_conjunctions.htm
Rule: https://community.languagetool.org/rule/show/COMMA_COMPOUND_SENTENCE?lang=en-US&subId=1
Category: PUNCTUATION
docs/user-guides/deployment.md|129 col 16| Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: vald
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC
docs/user-guides/filtering-configuration.md|23 col 4| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
docs/user-guides/filtering-configuration.md|30 col 4| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
docs/user-guides/filtering-configuration.md|45 col 4| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING
docs/user-guides/filtering-configuration.md|53 col 4| This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

| object | bytes | | \* | the binary object |
| field | type | label | required | desc. |
| :----: | :----- | :---- | :------: | :---------------- |
| id | string | | \* | the object ID |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: ID
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

| object | bytes | | \* | the binary object |
| field | type | label | required | desc. |
| :----: | :----- | :---- | :------: | :---------------- |
| id | string | | \* | the object ID |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: ID
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

| object | bytes | | \* | the binary object |
| field | type | label | required | desc. |
| :----: | :----- | :---- | :------: | :---------------- |
| id | string | | \* | the object ID |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: ID
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

| object | bytes | | \* | the binary object |
| field | type | label | required | desc. |
| :----: | :----- | :---- | :------: | :---------------- |
| id | string | | \* | the object ID |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: ID
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

| object | bytes | | \* | the binary object |
| field | type | label | required | desc. |
| :----: | :----- | :---- | :------: | :---------------- |
| id | string | | \* | the object ID |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: ID
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

```
```bash
NAME READY STATUS RESTARTS AGE
vald-agent-ngt-0 1/1 Running 0 20m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Insert a space between the numerical value and the unit symbol. (UNIT_SPACE[1])
Suggestions: 20 m
Rule: https://community.languagetool.org/rule/show/UNIT_SPACE?lang=en-US&subId=1
Category: PUNCTUATION

```bash
NAME READY STATUS RESTARTS AGE
vald-agent-ngt-0 1/1 Running 0 20m
vald-agent-ngt-1 1/1 Running 0 20m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Insert a space between the numerical value and the unit symbol. (UNIT_SPACE[1])
Suggestions: 20 m
Rule: https://community.languagetool.org/rule/show/UNIT_SPACE?lang=en-US&subId=1
Category: PUNCTUATION

NAME READY STATUS RESTARTS AGE
vald-agent-ngt-0 1/1 Running 0 20m
vald-agent-ngt-1 1/1 Running 0 20m
vald-agent-ngt-2 1/1 Running 0 20m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Insert a space between the numerical value and the unit symbol. (UNIT_SPACE[1])
Suggestions: 20 m
Rule: https://community.languagetool.org/rule/show/UNIT_SPACE?lang=en-US&subId=1
Category: PUNCTUATION

vald-agent-ngt-0 1/1 Running 0 20m
vald-agent-ngt-1 1/1 Running 0 20m
vald-agent-ngt-2 1/1 Running 0 20m
vald-agent-ngt-3 1/1 Running 0 20m
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Insert a space between the numerical value and the unit symbol. (UNIT_SPACE[1])
Suggestions: 20 m
Rule: https://community.languagetool.org/rule/show/UNIT_SPACE?lang=en-US&subId=1
Category: PUNCTUATION

@@ -147,89 +148,89 @@ This chapter uses [NGT](https://github.com/yahoojapan/ngt) as Vald Agent to perf
<details><summary>The detailed explanation of example code is here</summary><br>
This will execute 6 steps.

1. init
1. init
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Init
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

@kpango kpango merged commit 2d22f0e into main Dec 16, 2022
@kpango kpango deleted the deepsource-transform-885bce66 branch December 16, 2022 23:36

</details>

1. load
1. load
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Load
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

}
```
```go
ids, train, test, err := load(datasetPath)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

}
```
```go
for i := range ids [:insertCount] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

}
_, err := client.Insert(ctx, &payload.Insert_Request{
Vector: &payload.Object_Vector{
Id: ids[i],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This abbreviation for “identification” is spelled all-uppercase. (ID_CASING[2])
Suggestions: IDs
Rule: https://community.languagetool.org/rule/show/ID_CASING?lang=en-US&subId=2
Category: CASING

glg.Fatal(err)
}

b, _ := json.MarshalIndent(res.GetResults(), "", " ")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: B
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

helm install vald vald/vald --values <YOUR VALUES YAML FILE PATH>
```
```bash
helm install vald vald/vald --values <YOUR VALUES YAML FILE PATH>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
Possible typo: you repeated a word (ENGLISH_WORD_REPEAT_RULE)
Suggestions: vald
Rule: https://community.languagetool.org/rule/show/ENGLISH_WORD_REPEAT_RULE?lang=en-US
Category: MISC

```rpc
service Filter {
// Represent the RPC to generate the vector.
rpc GenVector(payload.v1.Object.Blob) returns (payload.v1.Object.Vector) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

}
```
// Represent the RPC to filter the vector.
rpc FilterVector(payload.v1.Object.Vector)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

```rpc
service Filter {
// Represent the RPC to filter the distance.
rpc FilterDistance(payload.v1.Object.Distance)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

};
}
// Represent the RPC to filter the vector.
rpc FilterVector(payload.v1.Object.Vector)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
This sentence does not start with an uppercase letter. (UPPERCASE_SENTENCE_START)
Suggestions: Rpc
URL: https://languagetool.org/insights/post/spelling-capital-letters/
Rule: https://community.languagetool.org/rule/show/UPPERCASE_SENTENCE_START?lang=en-US
Category: CASING

takuyaymd pushed a commit to aknishid/vald that referenced this pull request Dec 19, 2022
* Format code with prettier and gofumpt

This commit fixes the style issues introduced in 4e10e17 according to the output
from prettier and gofumpt.

Details: https://deepsource.io/gh/vdaas/vald/transform/3468f768-127e-425d-9457-42cc8d2ef2b2/

* Fix grammar (vdaas#1889)

* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* 💚 Separate language tool (vdaas#1890)

Signed-off-by: vankichi <kyukawa315@gmail.com>

Signed-off-by: vankichi <kyukawa315@gmail.com>

Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
aknishid pushed a commit to aknishid/vald that referenced this pull request Dec 19, 2022
* Format code with prettier and gofumpt

This commit fixes the style issues introduced in 4e10e17 according to the output
from prettier and gofumpt.

Details: https://deepsource.io/gh/vdaas/vald/transform/3468f768-127e-425d-9457-42cc8d2ef2b2/

* Fix grammar (vdaas#1889)

* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

* Fix grammar

Signed-off-by: vankichi <kyukawa315@gmail.com>

* Format code with prettier and gofumpt

Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* 💚 Separate language tool (vdaas#1890)

Signed-off-by: vankichi <kyukawa315@gmail.com>

Signed-off-by: vankichi <kyukawa315@gmail.com>

Signed-off-by: vankichi <kyukawa315@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Yusuke Kato <kpango@vdaas.org>
Co-authored-by: Kiichiro YUKAWA <kyukawa315@gmail.com>
@kpango kpango mentioned this pull request Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants